package com.zzh.myapplication.activity;

import android.content.Intent;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.RelativeLayout;

import net.icarplus.car.R;
import net.icarplus.car.manager.BaseActivity;
import net.icarplus.car.tools.ToolBarHelper;

/**
 * Created by Administrator on 2016/4/21.
 */
public class Invoiceactivity extends BaseActivity {

    private Toolbar toolbar;
    public RelativeLayout rl_invoice;
    public RelativeLayout rl_money_deposit;

    @Override
    public void setContent() {
        setContentView(R.layout.activity_invoice);
    }

    @Override
    public void initComponent() {
        toolbar = (Toolbar) findViewById(R.id.toolbar);
        ToolBarHelper.setNormalTitleAndBack(this, toolbar, "发票工具");
        rl_invoice = (RelativeLayout) findViewById(R.id.rl_invoice);
        rl_money_deposit = (RelativeLayout) findViewById(R.id.rl_money_deposit);
    }

    @Override
    public void setListener() {

        rl_invoice.setOnClickListener(this);
        rl_money_deposit.setOnClickListener(this);
    }

    @Override
    public void onAfterInit() {

    }

    @Override
    public void onClick(View v) {
        Intent intent = new Intent();
        switch (v.getId()) {
            case R.id.rl_invoice:
                intent.setClass(Invoiceactivity.this,InvoiceTravelActivity.class);
                start_Activity(intent);
                break;
            case R.id.rl_money_deposit:
                intent.setClass(Invoiceactivity.this,MoneyDepositActivity.class);
                start_Activity(intent);
                break;
        }
    }
}
